#include "systemversioncontroller.h"

SystemVersionController::SystemVersionController(QWidget *parent)
    : QObject{parent}
{
    systemVersionView = new SystemVersionView(parent);
    closeView();
        connect(systemVersionView->closebtn,SIGNAL(clicked()),this,SLOT(closeView()));
}

SystemVersionController::~SystemVersionController()
{

}

void SystemVersionController::show()
{
  systemVersionView-> setGeometry(0,0,systemVersionView->width() ==0 ?384:0,systemVersionView->height()==0?558:0);
}

void SystemVersionController::closeView()
{
  systemVersionView-> setGeometry(0,0,0,0);
}
